using static WaterCylinder;

public class Player : Entity
{   
    HandWeapon weapon;
    Bag bag;
    protected override void OnStart(){
        bag = GetComponent<Bag>();
        weapon = HandWeapon.CreatHandWeapon(this, Weapon.Create("SampleWeapon"));
    }

    protected override void OnUpdate(){
        SmoothMove(GetOblique(), speed);
        //左键射击
        if(InputOperaDown){
            weapon.UseWeapon();
            weapon.weapon.currentBullet.speed = 8;
        }
        if(InputBurstDown){
            bag.Drop();
        }
    }
}
